<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>Document</title>
    <link href="https://at.alicdn.com/t/c/font_4096975_pswyqyk8tdo.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            background-color: transparent;
        }

        /* 2.准备导航的基本样式 */
        ul {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            list-style: none;
        }

        /* 3.1 准备导航里面图标的基本样式 */
        ul li {
            position: relative;
            margin: 0 2px;
            width: 40px;
            height: 40px;
        }

        ul li span {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            line-height: 40px;
            font-size: 16px;
            background: #b500fd;
            color: #d12c2c;
            transform-origin: top;
            text-align: center;
            cursor: pointer;
        }

        ul li span:nth-child(2) {
            background: #68064e;
            color: #3d00fd;
            transform-origin: bottom;
            transform: rotateX(90deg) translateY(50%);
        }


        /* 3.1.1 鼠标悬停 旋转 上移 */
        ul li span {
            transition: all 0.5s;
        }

        ul li span:nth-child(1) {
            transform-origin: top;
        }

        ul li:hover span:nth-child(1) {
            transform: rotateX(90deg) translateY(-50%);
        }

        ul li:hover span:nth-child(2) {
            transform: rotateX(0deg) translateY(0);
        }

        ul li:hover {
            transform: translateY(-10px);
        }
    </style>
</head>
<body>
<!-- 结构 -->

<ul>
    <li><a href="https://im.qq.com/pcqq" target="_blank">
        <button>
            <span class="iconfont icon-QQ"></span>
            <span class="iconfont icon-QQ"></span></button>
    </a>
    </li>
    <li><a href="https://wx.qq.com/" target="_blank">
        <button>
            <span class="iconfont icon-weixin"></span>
            <span class="iconfont icon-weixin"></span></button>
    </a>
    </li>
    <li>
        <a href="https://www.douyin.com/discover" target="_blank">
            <button>
                <span class="iconfont icon-douyin"></span>
                <span class="iconfont icon-douyin"></span></button>
        </a>

    </li>
    <li>
        <a href="https://weibo.com/" target="_blank">
            <button>
                <span class="iconfont icon-xinlangweibo"></span>
                <span class="iconfont icon-xinlangweibo"></span></button>
        </a>
    </li>
    <li>
        <a href="https://auth.alipay.com/login/index.htm" target="_blank">
            <button>
                <span class="iconfont icon-alipay"></span>
                <span class="iconfont icon-alipay"></span></button>
        </a>
    </li>
</ul>

</body>
</html>